<?php

namespace app\index\controller;
use houdunwang\arr\Arr;
use think\Controller;
use think\Db;

class Personal extends Common
{
    public function index()
    {
        (new Auth())->check();

        $cdata = db('category')->limit(5)->select();
        $field = Arr::channelLevel(db('category')->where('id>5')->select(), $pid = 0, $html = "&nbsp;", $fieldPri = 'id', $fieldPid = 'pid');
        #订单数据
        $data= db('order')->select();
        dump($data);


        #推荐数据
        $reData =db('goods')->limit(8)->select();
//        dump($reData);
        return $this->template('personal',compact('cdata','field','data','reData'));
    }

}
